package com.scut.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户回复的答案
 * </p>
 *
 * @author Kevin Zheng
 * @since 2024-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Answer对象", description="用户回复的答案")
public class Answer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "answer_id", type = IdType.AUTO)
    private Long answerId;

    @ApiModelProperty(value = "问题的 id")
    private Long questionId;

    private Long candidateId;

    @ApiModelProperty(value = "用户回复的内容")
    private String answerText;

    @ApiModelProperty(value = "答案创建的时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "答案被用户更新的时间")
    private LocalDateTime updateTime;


}
